var root = 'http://'+location.host+'/api';